<%-- 
    Document   : resetPass
    Created on : Jul 7, 2012, 2:00:44 AM
    Author     : Home
--%>

<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="dbTool.myConnection"%>
<%@page import="java.sql.PreparedStatement"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="dbTool.functions"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>add Student Page</title>
    </head>
    <body>
        <%                                          
                int staffID = Integer.parseInt(request.getParameter("id").toString());               
                functions f = new functions();        
                int i = f.resetPass(staffID);
                if (i != 0) {
                    out.print("<script>alert('Reset pass succsessfull!');window.location='staff.jsp';</script>");
                } else {
                    out.print("<script>alert('Error.Can not reset pass!');window.location= 'staff.jsp';</script> ");
                }           
            
        %>
    </body>
</html>

